package com.hyg.module_report.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.github.mikephil.charting.data.Entry;

import java.util.ArrayList;

public class PulseDatas implements Parcelable {
    /*   脉诊详情数据模板   */

    private String pulseDataId = "";                        // 9
    private String pulseID = "";                            // 5
    private String pulseHand = "";                          // 左手
    private String pulsePos = "";                           //寸位
    private String pulsePressureType = "";                  //中取
    private ArrayList<Entry> data0 = new ArrayList<Entry>();    //数据图像1
    private ArrayList<Entry> data1 = new ArrayList<Entry>();    //
    private ArrayList<Entry> data2 = new ArrayList<Entry>();    //
    private String startIndex = "0";                        //最佳脉图起始点
    private String endIndex = "0";                          //最佳脉图末点
    private String fluency = "";                            //流利
    private String tensionDegree = "";                      //弛缓
    private String pulseForce = "";                         //有力
    private String pulseRate = "";                          //脉速率
    private String pulseType = "";                          //浮脉
    private String diagnosisDate = "";                      //诊断日期
    private String pfu = "";                                //节律均匀度
    private String sru = "";                                //脉力均匀度
    private String createTime = "";                         //创建时间
    private String updateTime = "";                         //更新时间


    public PulseDatas(String pulseDataId , String pulseID , String pulseHand , String pulsePos , String pulsePressureType ,
                      ArrayList<Entry> data0 , ArrayList<Entry> data1 , ArrayList<Entry> data2, String startIndex, String endIndex, String fluency , String tensionDegree , String pulseForce ,
                      String pulseRate , String pulseType , String diagnosisDate , String pfu , String sru , String createTime , String updateTime){

        this.pulseDataId = pulseDataId;
        this.pulseID = pulseID;
        this.pulseHand = pulseHand;
        this.pulsePos = pulsePos;
        this.pulsePressureType = pulsePressureType;
        this.data0 = data0;
        this.data1 = data1;
        this.data2 = data2;
        this.startIndex = startIndex;
        this.endIndex = endIndex;
        this.fluency = fluency;
        this.tensionDegree = tensionDegree;
        this.pulseForce = pulseForce;
        this.pulseRate = pulseRate;
        this.pulseType = pulseType;
        this.diagnosisDate = diagnosisDate;
        this.pfu = pfu;
        this.sru = sru;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    protected PulseDatas(Parcel in) {
        pulseDataId = in.readString();
        pulseID = in.readString();
        pulseHand = in.readString();
        pulsePos = in.readString();
        pulsePressureType = in.readString();
        data0 = in.createTypedArrayList(Entry.CREATOR);
        data1 = in.createTypedArrayList(Entry.CREATOR);
        data2 = in.createTypedArrayList(Entry.CREATOR);
        startIndex = in.readString();
        endIndex = in.readString();
        fluency = in.readString();
        tensionDegree = in.readString();
        pulseForce = in.readString();
        pulseRate = in.readString();
        pulseType = in.readString();
        diagnosisDate = in.readString();
        pfu = in.readString();
        sru = in.readString();
        createTime = in.readString();
        updateTime = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(pulseDataId);
        dest.writeString(pulseID);
        dest.writeString(pulseHand);
        dest.writeString(pulsePos);
        dest.writeString(pulsePressureType);
        dest.writeTypedList(data0);
        dest.writeTypedList(data1);
        dest.writeTypedList(data2);
        dest.writeString(startIndex);
        dest.writeString(endIndex);
        dest.writeString(fluency);
        dest.writeString(tensionDegree);
        dest.writeString(pulseForce);
        dest.writeString(pulseRate);
        dest.writeString(pulseType);
        dest.writeString(diagnosisDate);
        dest.writeString(pfu);
        dest.writeString(sru);
        dest.writeString(createTime);
        dest.writeString(updateTime);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PulseDatas> CREATOR = new Creator<PulseDatas>() {
        @Override
        public PulseDatas createFromParcel(Parcel in) {
            return new PulseDatas(in);
        }

        @Override
        public PulseDatas[] newArray(int size) {
            return new PulseDatas[size];
        }
    };

    public String getPulseDataId() {
        return pulseDataId;
    }

    public void setPulseDataId(String pulseDataId) {
        this.pulseDataId = pulseDataId;
    }

    public String getPulseID() {
        return pulseID;
    }

    public void setPulseID(String pulseID) {
        this.pulseID = pulseID;
    }

    public String getPulseHand() {
        return pulseHand;
    }

    public void setPulseHand(String pulseHand) {
        this.pulseHand = pulseHand;
    }

    public String getPulsePos() {
        return pulsePos;
    }

    public void setPulsePos(String pulsePos) {
        this.pulsePos = pulsePos;
    }

    public String getPulsePressureType() {
        return pulsePressureType;
    }

    public void setPulsePressureType(String pulsePressureType) {
        this.pulsePressureType = pulsePressureType;
    }

    public ArrayList<Entry> getData0() {
        return data0;
    }

    public void setData0(ArrayList<Entry> data0) {
        this.data0 = data0;
    }

    public ArrayList<Entry> getData1() {
        return data1;
    }

    public void setData1(ArrayList<Entry> data1) {
        this.data1 = data1;
    }

    public ArrayList<Entry> getData2() {
        return data2;
    }

    public void setData2(ArrayList<Entry> data2) {
        this.data2 = data2;
    }

    public String getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(String startIndex) {
        this.startIndex = startIndex;
    }

    public String getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(String endIndex) {
        this.endIndex = endIndex;
    }

    public String getFluency() {
        return fluency;
    }

    public void setFluency(String fluency) {
        this.fluency = fluency;
    }

    public String getTensionDegree() {
        return tensionDegree;
    }

    public void setTensionDegree(String tensionDegree) {
        this.tensionDegree = tensionDegree;
    }

    public String getPulseForce() {
        return pulseForce;
    }

    public void setPulseForce(String pulseForce) {
        this.pulseForce = pulseForce;
    }

    public String getPulseRate() {
        return pulseRate;
    }

    public void setPulseRate(String pulseRate) {
        this.pulseRate = pulseRate;
    }

    public String getPulseType() {
        return pulseType;
    }

    public void setPulseType(String pulseType) {
        this.pulseType = pulseType;
    }

    public String getDiagnosisDate() {
        return diagnosisDate;
    }

    public void setDiagnosisDate(String diagnosisDate) {
        this.diagnosisDate = diagnosisDate;
    }

    public String getPfu() {
        return pfu;
    }

    public void setPfu(String pfu) {
        this.pfu = pfu;
    }

    public String getSru() {
        return sru;
    }

    public void setSru(String sru) {
        this.sru = sru;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
